package tsing.javase.excutionorder;

/**
 * @Author Tsing/吴清平
 * @Date 2022/10/20 13:49
 * @Version 1.0
 */
public class Father {

    private int count;

    public Father(int count) {
        this.count = count;
        System.out.println("father 's 有参构造执行");
    }



    static Father father = new Son();

    static {

        System.out.println("father's static bar running");


    }


    {
        System.out.println("father's  bar running");
//         new Father();
    }

    public   void  method(){

        System.out.println("father 's  method  is runnnig ");
    }

    public Father() {
        System.out.println("father's constructor is running");
    }


    public static void fMethod(){
        System.out.println("father's static method is running");
    }


    public static void main(String[] args) {

        new Father().method();



    }


}
